package com.njbdqn.threetab.dao;

import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Select;
import org.njbdqn.componse.page.IPageDAO;

import com.njbdqn.threetab.domain.Userinfos;

public interface UserinfosDAO extends IPageDAO<Userinfos>{
	public void saveUser(Userinfos user);
	@Delete("delete from  userinfos where userid=#{userid}")
	public void delUesr(int userid);
	public Userinfos findUser(int userid);
	@Select("select * from userinfos where username=#{username} and password=#{password}")
	public Userinfos login(Userinfos user);
}
